package game.objects.npc;
import physics.Body;
import editors.objectedit.LoadObject;
import game.Game;
import tools.Point;
public class GOBug extends FSMNPC {
	private Body lwheel;
	private Body rwheel;
	public GOBug(Game g, Point pos) {
		super(g, pos);
	}
	public void handle() {
		super.handle();
		lwheel.applyConstAngularImpulse(100);
		rwheel.applyConstAngularImpulse(100);
	}
	public void initialize(Point p) {
		LoadObject.load("bug", this, p);
		lwheel = this.getBodyByName("leftwheel");
		rwheel = this.getBodyByName("rightwheel");
	}
}
